﻿using System;

namespace IupNET
{
    public class SBox:Control
    {
        public SBox(Control child)
            : base(Iupc.Sbox(child.cobject))
        {

        }

        public Color Color
        {
            get
            {
                return Convert.StringToColor(GetAttribute("COLOR"));
            }
            set
            {
                SetAttribute("COLOR", Convert.ColorToString(value));
            }
        }

        public Direction Direction
        {
            get
            {
                return Convert.StringToDirection(GetAttribute("DIRECTION"));
            }
            set
            {
                SetAttribute("DIRECTION", Convert.DirectionToString(value));
            }
        }
        
    }
}
